<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>随心物联开发者平台@yield('title')</title>
    <link rel="stylesheet" type="text/css" href="{{asset('admin/css/zui.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('admin/css/theme/zui-theme-green.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('admin/css/style.css')}}">
    <script type="text/javascript" src="{{asset('admin/lib/jquery/jquery.js')}}"></script>
    <script type="text/javascript" src="{{asset('admin/js/zui.js')}}"></script>
</head>

<body>
<div class="main">
    <header class="header">
        <div class="header-left">
            <div class="sidebar-toggle"><i class="icon icon-bars"></i></div>
            <div class="logo"><span class="text-primary">随心物联开放平台</span></div>
        </div>
        <div class="header-user">

            <div class="item dropdown">
				<span data-toggle="dropdown">
					<i class="icon icon-user"></i>
					<span>开发者</span>
					<span class="caret"></span>
				</span>
                <ul class="dropdown-menu pull-right">
                    <li>
                        <a href="{{url('charge/info.html')}}">个人资料</a>
                    </li>
                    <li class="divider"></li>
                    <li>
                        <a href="{{url('charge/logout.html')}}">注销</a>
                    </li>
                </ul>
            </div>
        </div>
    </header>
    <aside class="sidebar">
        <div class="sidebar-menu">
            <div class="sidebar-first item index " style="margin-left: 0;margin-right:0;">
                <a  href="{{url('charge/index.html')}}">
                    <i class="icon icon-dashboard"></i>
                    <span>主页</span>
                </a>
            </div>
            <div  class="item device">
                <a href="{{url('charge/device.html')}}">
                    <i class="icon icon-cogs"></i>
                    <span>设备管理</span>
                </a>
            </div>
            <div  class="item addDevice">
                <a href="{{url('charge/addDevice.html')}}">
                    <i class="icon icon-plus-sign"></i>
                    <span>添加管理</span>
                </a>
            </div>
            <div class="item message">
                <a href="{{url('charge/message.html')}}">
                    <i class="icon icon-bell-alt"></i>
                    <span>消息中心</span>
                </a>
            </div>
            <div class="item info">
                <a href="{{url('charge/info.html')}}">
                    <i class="icon icon-user"></i>
                    <span>用户信息</span>
                </a>
            </div>

        </div>
    </aside>
    <div class="main-content">
        <div class="wrapper">
            @yield('content')
        </div>
    </div>

</div>

<script type="text/javascript" src="{{asset('admin/js/admin.js')}}"></script>
<script>

    $('.@yield('style')').addClass('active');
</script>
</body>
</html>